From 6d472294b107dfcdac2c4b8b6915fe836049166a Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 3 Aug 2015 20:46:24 -0700 Subject: [PATCH] Fix a flaky tests on Windows Windows doesn't like us deleting files right after running a process that works on them, so be sure to call `cargo` instead of `cargo_process`. --- tests/test_cargo_test.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/test_cargo_test.rs b/tests/test_cargo_test.rs index 9f8a43ff1..52860ec6c 100644 --- a/tests/test_cargo_test.rs +++ b/tests/test_cargo_test.rs @@ -495,10 +495,9 @@ test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured doctest = DOCTEST, dir = p.url()))); - assert_that(p.cargo_process("test").arg("foo"), + assert_that(p.cargo("test").arg("foo"), execs().with_status(0) .with_stdout(&format!("\ -{compiling} foo v0.0.1 ({dir}) {running} target[..]foo-[..] running 1 test @@ -513,9 +512,8 @@ running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured ", - compiling = COMPILING, running = RUNNING, - doctest = DOCTEST, - dir = p.url()))); + running = RUNNING, + doctest = DOCTEST))); }); // Regression test for running cargo-test twice with -- 2.30.2